﻿<%@ Page Language="C#" MasterPageFile="~/defaultMaster.master" AutoEventWireup="true" CodeFile="floordetails.aspx.cs" Inherits="floordetails" Title="Chi tiết sàn đấu giá" %>

<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="5" style="width: 650px" align="center">
        <tr>
            <td>
              <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-right: #ccc 1px solid; border-top: #ccc 1px solid; border-left: #ccc 1px solid; border-bottom: #ccc 1px solid;" align="center">
                <tr>
                    <td style="height: 13px">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td style="width: 35px; height: 30px;">
                                    <img src="imgs/header_left.gif"  alt = ""/></td>
                                <td class="header" style="height: 30px">
                                <span class="HeaderText">Thông tin ngắn gọn của sàn:
                                    <asp:Label ID="lblHeader" runat="server" Text=""></asp:Label></span></td>
                            </tr>
                        </table>
                        <table border="0" cellpadding="5" cellspacing="0" align="center">
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:Image ID="img" runat="server" Height="300px" Width="400px" /></td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:DataList ID="dlThumbs" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                                        Width="100%" DataKeyField="RealImgPath" OnSelectedIndexChanged="dlThumbs_SelectedIndexChanged">
                                        <ItemTemplate>
                                            &nbsp;<table border="0" cellpadding="3" cellspacing="0" style="width: 200px">
                                                <tr>
                                                    <td>
                                            <asp:Image ID="Image3" runat="server" BorderColor="#CCCCCC" BorderStyle="Dotted"
                                                BorderWidth="1px" Height="150px" ImageUrl='<%# Eval("ThumbImgPath") %>' Width="200px" /></td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Select" Text="Xem hình" CssClass="ProName"></asp:LinkButton></td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                    </td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                    </asp:DataList></td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="btnBookmark" runat="server" CssClass="QuickButton" OnClick="btnBookmark_Click"
                                        Text="Bookmark" /></td>
                            </tr>
                            <tr>
                                <td style="width: 150px" align="left">
                                    Giá hiện tại:</td>
                                <td style="width: 500px; padding-left: 5px;" align="justify">
                                    <asp:Label ID="lblCurBid" runat="server" CssClass="Verdana10RedBold"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px" align="left">
                                    Thời gian kết thúc:</td>
                                <td style="width: 500px; padding-left: 5px;" align="justify">
                                    <asp:Label ID="lblEFD" runat="server"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px;" align="left">
                                    Thời gian còn lại:</td>
                                <td style="width: 500px; padding-left: 5px;" align="justify">
                                    <asp:Label ID="lblEFDLeft" runat="server" CssClass="Verdana8Orange" Font-Bold="True"></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="left" style="width: 150px">
                                    Địa điểm sản phẩm:</td>
                                <td align="justify" style="padding-left: 5px; width: 500px">
                                    <asp:Label ID="lblProPlace" runat="server"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px" align="left">
                                    Quá trình đấu giá:</td>
                                <td style="width: 500px; padding-left: 5px;" align="justify">
                                    <asp:Label ID="lblBids" runat="server" Font-Bold="True"></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="left" colspan="2">
                                    <rad:RadGrid ID="grdDetails" runat="server" AllowPaging="True"
                                        AutoGenerateColumns="False" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
                                        GridLines="None" Skin="Vista" LoadingTemplateTransparency="25">
                                        <MasterTableView NoMasterRecordsText="Kh&#244;ng c&#243; dữ liệu">
                                            <Columns>
                                                <rad:GridBoundColumn DataField="Buyer" HeaderText="Người mua" UniqueName="column">
                                                    <ItemStyle Width="100px" Font-Bold="False" />
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                                                </rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="Bid" DataFormatString="{0:c0}" DataType="System.Decimal"
                                                    HeaderText="Gi&#225; tiền" UniqueName="column1">
                                                    <ItemStyle Width="150px" />
                                                    <HeaderStyle Font-Bold="True" />
                                                </rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="BidDate" DataType="System.DateTime"
                                                    HeaderText="Ng&#224;y ra gi&#225;" UniqueName="column2">
                                                    <ItemStyle Width="150px" />
                                                    <HeaderStyle Font-Bold="True" />
                                                </rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="MaxBid" DataFormatString="{0:c0}" DataType="System.Decimal"
                                                    HeaderText="Gi&#225; cao nhất" UniqueName="column3">
                                                    <HeaderStyle Font-Bold="True" />
                                                </rad:GridBoundColumn>
                                            </Columns>
                                            <ExpandCollapseColumn Resizable="False" Visible="False">
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <PagerStyle Mode="NumericPages" />
                                            <RowIndicatorColumn Visible="False">
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                        </MasterTableView>
                                    </rad:RadGrid></td>
                            </tr>
                            <tr>
                                <td style="width: 150px" align="left">
                                    Người ra giá cao nhất:</td>
                                <td style="width: 500px; padding-left: 5px;" align="justify">
                                    <asp:Label ID="lblCurWinner" runat="server" CssClass="Verdana8Orange" Font-Bold="True"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px" align="left">
                                    Người bán:</td>
                                <td style="width: 500px; padding-left: 5px;" align="justify">
                                    <asp:Label ID="lblSeller" runat="server" CssClass="Verdana8Orange" Font-Bold="True"></asp:Label></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; border-right: #ccc 1px solid; border-top: #ccc 1px solid; border-left: #ccc 1px solid; border-bottom: #ccc 1px solid;">
                    <tr>
                        <td><table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td style="width: 35px; height: 30px;">
                                    <img src="imgs/header_left.gif"  alt = ""/></td>
                                <td class="header" style="height: 30px">
                                    <span class="HeaderText">Mô tả chi tiết sản phẩm</span></td>
                            </tr>
                        </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="justify" style="padding-right: 5px; padding-left: 35px; padding-bottom: 5px; padding-top: 5px"><asp:Label ID="lblFullDes" runat="server"></asp:Label></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" style="border-right: #ccc 1px solid;
                    border-top: #ccc 1px solid; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid">
                    <tr>
                        <td style="height: 13px" valign="top">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 35px; height: 30px;">
                                        <img src="imgs/header_left.gif"  alt = ""/></td>
                                    <td class="header" style="height: 30px">
                                        <span class="HeaderText">Quy định thanh toán &amp; vận chuyển</span></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table border="0" cellpadding="5" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="width: 150px" valign="top">
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 150px" valign="top">
                                    Hình thức thanh toán:</td>
                                    <td>
                                    <asp:DataList ID="dlPayterms" runat="server" Width="90%">
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text="<%# &quot;<div style='padding-bottom: 4px'>&quot; + Eval(&quot;TypeName&quot;) + &quot;</div>&quot; %>"></asp:Label>
                                        </ItemTemplate>
                                    </asp:DataList></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    Cho phép trả:</td>
                                    <td>
                                    <asp:Label ID="lblNo" runat="server" CssClass="Verdana9Olive" Font-Bold="True" Text="Không"></asp:Label><asp:Label ID="lblYes" runat="server" CssClass="Verdana9Orange" Font-Bold="True"
                                        Text="Có"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    Thời hạn trả:</td>
                                    <td>
                                    <asp:Label ID="lblReturnPeriod" runat="server"></asp:Label>
                                        ngày sau khi mua</td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                    Chính sách trả hàng:</td>
                                    <td>
                                    <asp:Label ID="lblRPT" runat="server"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px">
                                        Các địa điểm:</td>
                                    <td>
                                        <asp:Label ID="lblPlaces" runat="server"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td style="width: 150px" valign="top">
                                    Phí vận chuyển:</td>
                                    <td>
                                    <rad:RadGrid ID="grdCharges" runat="server" AutoGenerateColumns="False" GridLines="None"
                                        Skin="Vista">
                                        <MasterTableView NoMasterRecordsText="Kh&#244;ng c&#243; dữ liệu">
                                            <Columns>
                                                <rad:GridBoundColumn DataField="ChargeName" HeaderText="Loại ph&#237;" UniqueName="column">
                                                    <ItemStyle Width="150px" />
                                                    <HeaderStyle Font-Bold="True" />
                                                </rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="AreaName" HeaderText="V&#249;ng" UniqueName="column1">
                                                    <ItemStyle Width="80px" />
                                                    <HeaderStyle Font-Bold="True" />
                                                </rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="Fee" DataFormatString="{0:c0}" HeaderText="Ph&#237;"
                                                    UniqueName="column2" DataType="System.Decimal">
                                                    <HeaderStyle Font-Bold="True" />
                                                </rad:GridBoundColumn>
                                                <rad:GridBoundColumn DataField="Note" HeaderText="Ghi ch&#250;" UniqueName="column3">
                                                    <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" Wrap="True" />
                                                </rad:GridBoundColumn>
                                            </Columns>
                                            <ExpandCollapseColumn Resizable="False" Visible="False">
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <RowIndicatorColumn Visible="False">
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                        </MasterTableView>
                                    </rad:RadGrid></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
           </td>
        </tr>
        <tr>
            <td><table border="0" cellpadding="0" cellspacing="0" style="border-right: #ccc 1px solid;
                    border-top: #ccc 1px solid; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid">
                <tr>
                    <td style="height: 13px" valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td style="width: 35px; height: 30px;">
                                    <img src="imgs/header_left.gif"  alt = ""/></td>
                                <td class="header" style="height: 30px">
                                    <span class="HeaderText">Ra giá</span></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table border="0" cellpadding="5" cellspacing="0" style="width: 100%" align="center">
                            <tr>
                                <td style="width: 150px" valign="top">
                                </td>
                                <td colspan="2">
                                    <asp:Label ID="lblBidErr" runat="server" CssClass="Verdana8Red" Text="Thẻ của bạn đã hết hạn sử dụng !!!"
                                        Visible="False" Font-Bold="True"></asp:Label>
                                    <asp:Label ID="lblBidProcErr" runat="server" CssClass="Verdana8Red" Font-Bold="True"
                                        Visible="False"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px" valign="top">
                                    Tên sản phẩm:</td>
                                <td colspan="2">
                                    <asp:Label ID="lblProName" runat="server" CssClass="Verdana8Olive" Font-Bold="True"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px">
                                    Giá hiện tại:</td>
                                <td colspan="2">
                                    <asp:Label ID="lblCurBid2" runat="server" CssClass="Verdana10RedBold"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 150px">
                                    Giá của bạn:</td>
                                <td style="width: 155px">
                                    <rad:RadNumericTextBox id="txtYourBid" Runat="server" Skin="Office2007" MinValue="0" ShowSpinButtons="True" Type="Currency">
                                        <numberformat allowrounding="True" DecimalDigits="0"></numberformat>
                                        <IncrementSettings Step="1000" />
                                    </rad:RadNumericTextBox></td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 150px">
                                    Giá cao nhất có thể trả:</td>
                                <td style="width: 155px">
                                    <rad:RadNumericTextBox id="txtYourMaxBid" Runat="server" Skin="Office2007" MinValue="0" ShowSpinButtons="True" Type="Currency" Value="0">
                                        <numberformat allowrounding="True" DecimalDigits="0"></numberformat>
                                        <IncrementSettings Step="1000" />
                                    </rad:RadNumericTextBox></td>
                                <td>
                                    <asp:Panel ID="pnBidBtn" runat="server" Width="100%">
                                    <asp:Button ID="btnBid" runat="server" CssClass="bidButton" Text="Ra giá" OnClick="btnBid_Click" /><asp:Label ID="lblRecommend" runat="server" CssClass="Verdana8Olive" Font-Bold="True">Đề nghị MUA NGAY !!!</asp:Label></asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 150px">
                                    <asp:Label ID="lblQuickTitle" runat="server" Text="Giá mua ngay:"></asp:Label></td>
                                <td style="width: 155px">
                                    <asp:Label ID="lblQuickPrice" runat="server" CssClass="Verdana10RedBold"></asp:Label>&nbsp;</td>
                                <td>
                                    <asp:Panel ID="pnQuickPurchase" runat="server" Width="100%">
                                    <asp:Button ID="btnQuickPurchase"
                                        runat="server" CssClass="QuickButton" Text="Mua ngay" OnClick="btnQuickPurchase_Click" /></asp:Panel>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
    <rad:RadAjaxManager id="RadAjaxManager1" runat="server">
        <ajaxsettings>
            <rad:AjaxSetting AjaxControlID="dlThumbs">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="img" LoadingPanelID="AjaxLoadingPanel2" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="timer">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="lblEFDLeft" />
                    <rad:AjaxUpdatedControl ControlID="pnBidBtn" />
                    <rad:AjaxUpdatedControl ControlID="pnQuickPurchase" />
                </UpdatedControls>
            </rad:AjaxSetting>
</ajaxsettings>
    </rad:RadAjaxManager>
    <rad:AjaxLoadingPanel id="AjaxLoadingPanel2" runat="server" Height="75px" Transparency="20"
        Width="75px">
        <br />
        <br />
        <asp:Image ID="Image2" runat="server" AlternateText="Loading..." ImageUrl="~/imgs/ajaxLoading2.gif" />
    </rad:AjaxLoadingPanel>
    <rad:RadAjaxTimer ID="timer" runat="server" Interval="1000" OnTick="timer_Tick" />
</asp:Content>

